﻿///***************************************************************
/// 시  스  템 : Updms.Cfg.Dac
/// 단위시스템 : CFG
/// 계      층 : Data Access Layer
/// 프로그램명 : Cfg_Dac_UPDMS_CFG_ATTACH_FILE
/// 파  일  명 : Cfg_Dac_UPDMS_CFG_ATTACH_FILE.cs
/// 설      명 : 첨부파일 체크
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2010-10-15 송시명   최초 작성
///***************************************************************
using System.Data;
using System.Data.SqlClient;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;

namespace Updms.Cfg.Dac
{
	[ComVisible(true)]
	[Transaction(TransactionOption.Supported)]
	[JustInTimeActivation(true)]
	public class Cfg_Dac_UPDMS_CFG_ATTACH_FILE : Base.AppFramework.DacBase
	{
		public Cfg_Dac_UPDMS_CFG_ATTACH_FILE()
		{
		}

		#region NT [GetAttachFileList]
		/// <summary>
		/// 첨부파일 목록
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetAttachFileList(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_CFG_ATTACH_FILE_Get_Attach_File_List";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();

			DataSet ds = new DataSet();
			return _agent.Fill(strSql, "UPDMS_CFG_ATTACH_FILE", ds, paramArray, CommandType.StoredProcedure);
		}

		#endregion

		#region RT [CleanAttachFile]
		/// <summary>
		/// 데이터 정리
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public int CleanAttachFile(string ls_xml)
		{
			string ls_sql = "usp_UPDMS_CFG_ATTACH_FILE_Clean_Attach_File";

			SqlParameter[] paramArray =
			{
				new SqlParameter("ls_xml", ls_xml)
			};

			return _agent.ExecuteNonQuery(ls_sql, paramArray, CommandType.StoredProcedure);
		}
				
		#endregion

	}
}
